package com.lapula.crazyface.entity;

import java.util.ArrayList;
import java.util.List;

import android.content.Context;
import android.graphics.Bitmap;
import android.graphics.PointF;

import com.lapula.crazyface.R;
import com.lapula.crazyface.entity.Emotion.ExpressionItem;
import com.lapula.crazyface.entity.Emotion.OffsetRatio;
import com.lapula.crazyface.util.ImageUtils;

public class MaimengEmotion extends Emotion {

	private final String expressionFolder = "expression/maimeng";
	
	public MaimengEmotion(Context context) {
		super(context);
	}

	@Override
	protected void init() {
		List<Bitmap> leftEyes = new ArrayList<Bitmap>();
		leftEyes.add(ImageUtils.getImageFromAssetsFile(context, expressionFolder + "/" + "maimeng_left_01.png"));
		leftEyes.add(ImageUtils.getImageFromAssetsFile(context, expressionFolder + "/" + "maimeng_left_02.png"));
		OffsetRatio leftOffset = new OffsetRatio(-0.55f, -0.4f);
		ExpressionItem leftItem = new ExpressionItem(leftEyes, leftOffset, BASED_POINT_LEFT_EYE);
		expressioItems.add(leftItem);

		List<Bitmap> rightEyes = new ArrayList<Bitmap>();
		rightEyes.add(ImageUtils.getImageFromAssetsFile(context, expressionFolder + "/" + "maimeng_right_01.png"));
		rightEyes.add(ImageUtils.getImageFromAssetsFile(context, expressionFolder + "/" + "maimeng_right_02.png"));
		OffsetRatio rightOffset = new OffsetRatio(-0.45f, -0.4f);
		ExpressionItem rightItem = new ExpressionItem(rightEyes, rightOffset, BASED_POINT_RIGHT_EYE);
		expressioItems.add(rightItem);
	}
}
